// JavaScript Document
function nTabs(thisObj,Num){
	if(thisObj.className == "active")return;
	var tabObj = thisObj.parentNode.id;
	var tabList = document.getElementById(tabObj).getElementsByTagName("li");
	for(i=0; i <tabList.length; i++)
	{
		if(i == Num){
			thisObj.className = "active"; 
		    document.getElementById(tabObj+"_Content"+i).style.display = "block";
		}else{
			tabList[i].className = "normal"; 
			document.getElementById(tabObj+"_Content"+i).style.display = "none";
		}
	} 
}


function fetch_object(idname)   
{   
 var my_obj = document.getElementById(idname);   
 return my_obj;   
}   
function toggle_nav(obj)   
{ 
var subList = document.getElementById('area_tab').getElementsByTagName("li");
 for (i = 0; i<= 10; i++ )   
 {   
  var sub_nav = fetch_object("sub_nav_" + i);   
  var sub_nav_index = fetch_object("sub_nav_0");   
  sub_nav_index.style.display = "none";   
  if (obj == i)   
  {  
   subList[i].className="active";
   sub_nav.style.display = "block";   
  }   
  else  
  {  
   subList[i].className="";
   sub_nav.style.display = "none";   
  }   
 }   
}   